<template>
  <div class="aibox">
    <div class="close_box" @click.stop="closeBoxshow">
      <img :src="`${imgurl}white_close.png`" alt="" />
    </div>
    <div class="aibox_title_top">
      <div class="boxtitle">
        <div class="titlet">
          <img :src="`${imgurl}aizlbbx.png`" alt="" />
        </div>
        <div class="titright">
          <img :src="`${imgurl}boxsearch.png`" alt="" />
          <input
            type="text"
            v-model="keyword"
            @input="changeData"
            placeholder="请输入您想查询的内容"
          />
          <div class="delks" v-if="keyword != ''" @click="delSearch"></div>
        </div>
      </div>

      <div class="boxClass" v-if="keyword==''"> 
          <ul>
            <li :class="classindex == -1 ? 'cur' : ''" @click="changeType(-1)">
              精选
            </li>
            <li
              :class="classindex == index ? 'cur' : ''"
              v-for="(item, index) in typelist"
              :key="index"
              @click="changeType(index)"
            >
              {{ item.title }}
            </li>
            <li
              :class="classindex == 999 ? 'cur' : ''"
              @click="changeType(999)"
            >
              行业从业者
            </li>
          </ul>
          <span :style="`left:${liwidth}px`"></span>
        </div>

    </div>
    <div class="aibox_title_bot">
      <div class="boxSearch" v-if="keyword != ''">
        <img :src="`${imgurl}searchIocn.png`" alt="" />
        <p>
          为您找到<span>{{ serachlist.length }}</span
          >个指令
        </p>
      </div>
      <div style="height: 100%" v-else>
       

        <div class="boxmain" v-if="classindex == -1">
          <div class="hotcom" v-if="hotcommand.length > 0">
            <div class="hotcomtitle">
              <img :src="`${imgurl}hotcommend.png`" alt="" />热门指令
            </div>
            <div class="threeClass hotcomC">
              <Swiper
                @swiper="onSwiper"
                @slideChange="onSlideChange"
                :modules="modules"
                :slidesPerView="slidesPerView1"
                :navigation="navigation"
                :spaceBetween="20"
                :slidesPerGroup="1"
                :grid="{
                  rows: 2,
                }"
                ><SwiperSlide v-for="(item, index) in hotcommand" :key="index">
                  <!-- :autoplay="{ delay: 3000, disableOnInteraction: false }" -->
                  <div class="listitem" @click="useComm(item)">
                    <div class="libg">
                      <span>{{ index + 1 }}</span>
                    </div>
                    <div class="list_t">
                      <div class="list_icon">
                        <img :src="`${imgurl}hot.png`" alt="" />
                      </div>
                      <div class="list_title">
                        {{ item.title }}
                      </div>
                    </div>
                    <div class="list_b">
                      <div class="list_desc">
                        {{ item.command }}
                      </div>
                      <div class="list_mes">
                        <img :src="`${imgurl}list_mess.png`" alt="" />
                      </div>
                      <div class="list_bt">
                        <div class="list_btn_con">使用</div>
                      </div>
                    </div>
                  </div>
                </SwiperSlide>
              </Swiper>
            </div>
          </div>
          <div class="hotcom" v-if="newcommand.length > 0">
            <div class="hotcomtitle">
              <img :src="`${imgurl}new_command.png`" alt="" />最近更新
            </div>
            <div class="threeClass hotcomC">
              <Swiper
                @swiper="onSwiper"
                @slideChange="onSlideChange"
                :modules="modules"
                :slidesPerView="slidesPerView1"
                :spaceBetween="20"
                :slidesPerGroup="1"
                :navigation="navigation1"
                :grid="{
                  rows: 2,
                }"
                ><SwiperSlide v-for="(item, index) in newcommand" :key="index">
                  <!-- :autoplay="{ delay: 3000, disableOnInteraction: false }" -->
                  <div class="listitem" @click="useComm(item)">
                    <div class="list_t">
                      <div class="list_icon">
                        <img :src="`${imgurl}new.png`" alt="" />
                      </div>
                      <div class="list_title">
                        {{ item.title }}
                      </div>
                    </div>
                    <div class="list_b">
                      <div class="list_desc">
                        {{ item.command }}
                      </div>
                      <div class="list_mes">
                        <img :src="`${imgurl}list_mess.png`" alt="" />
                      </div>
                      <div class="list_bt">
                        <div class="list_btn_con">使用</div>
                      </div>
                    </div>
                  </div>
                </SwiperSlide>
              </Swiper>
            </div>
          </div>
          <div class="hotcom" v-if="aicommand.length > 0">
            <div class="hotcomtitle">
              <img :src="`${imgurl}aitixiao.png`" alt="" />AI提效
            </div>
            <div class="threeClass hotcomC">
              <Swiper
                :modules="modules"
                :slidesPerView="slidesPerView1"
                :spaceBetween="20"
                :slidesPerGroup="1"
                :navigation="navigation2"
                :grid="{
                  rows: 2,
                }"
                ><SwiperSlide v-for="(item, index) in aicommand" :key="index">
                  <!-- :autoplay="{ delay: 3000, disableOnInteraction: false }" -->
                  <div class="listitem" @click="useComm(item)">
                    <div class="list_t">
                      <div class="list_icon">
                        <img :src="`${imgurl}aitixiao_01.png`" alt="" />
                      </div>
                      <div class="list_title">
                        {{ item.title }}
                      </div>
                    </div>
                    <div class="list_b">
                      <div class="list_desc">
                        {{ item.command }}
                      </div>
                      <div class="list_mes">
                        <img :src="`${imgurl}list_mess.png`" alt="" />
                      </div>
                      <div class="list_bt">
                        <div class="list_btn_con">使用</div>
                      </div>
                    </div>
                  </div>
                </SwiperSlide>
              </Swiper>
            </div>
          </div>
        </div>

        <div class="boxmain" v-else-if="classindex > -1 && classindex != 999">
          <div class="childClass" v-if="keyword == ''">
            <ul>
              <li
                v-for="(item, index) in typelist[classindex].children"
                :key="index"
                :class="childClassIndex == index ? 'cur' : ''"
                @click="getShow(item.id, index)"
              >
                {{ item.title }}
              </li>
            </ul>
          </div>

          <div class="threeClass threeClasssearch">
            <ul>
              <li
                v-for="(item, index) in datalist"
                :key="index"
                @click="useComm(item)"
              >
                <div class="list_t">
                  <div class="list_icon">
                    <img :src="`${baseurl}${dataicon}`" alt="" />
                  </div>
                  <div class="list_title">
                    {{ item.title }}
                  </div>
                </div>
                <div class="list_b">
                  <div class="list_desc">
                    {{ item.command }}
                  </div>
                  <div class="list_mes">
                    <img :src="`${imgurl}list_mess.png`" alt="" />
                  </div>
                  <div class="list_bt">
                    <div class="list_btn_con">使用</div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
        </div>

        <div class="boxmain" v-else-if="classindex == 999">
          <div class="threeClass threeClasssearch">
            <ul>
              <li
                v-for="(item, index) in list"
                :key="index"
                @click="openPlug(item.data.id)"
              >
                <div class="list_t">
                  <div class="list_icon">
                    <img :src="`${imgurl}swhy.png`" alt="" />
                  </div>
                  <div class="list_title">
                    {{ item.title }}
                  </div>
                </div>
                <div class="list_b">
                  <div class="list_desc">
                    {{ item.command }}
                  </div>
                  <div class="list_mes">
                    <img :src="`${imgurl}list_mess.png`" alt="" />
                  </div>
                  <div class="list_bt">
                    <div class="list_btn_con">使用</div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="threeClass threeClasssearch" v-if="keyword != ''">
      <ul v-if="serachlist.length > 0">
        <li
          v-for="(item, index) in serachlist"
          :key="index"
          @click="useComm(item)"
        >
          <div class="list_t">
            <div class="list_icon">
              <img :src="`${baseurl}${item.iconpath}`" alt="" />
            </div>
            <div class="list_title" v-html="item.title"></div>
          </div>
          <div class="list_b">
            <div class="list_desc" v-html="item.command"></div>
            <div class="list_mes">
              <img :src="`${imgurl}list_mess.png`" alt="" />
            </div>
            <div class="list_bt">
              <div class="list_btn_con">使用</div>
            </div>
          </div>
        </li>
      </ul>
      <div class="search_no" v-else>
        <img :src="`${imgurl}search_no.png`" alt="" />
        <p>没有找到相关指令</p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useSystemStore } from "@/store/modules/system";
const base = useSystemStore();
const baseurl = inject("$baseurl", null as any);
const serachlist = ref([]);
const imgurl = import.meta.env.VITE_APP_TITLE + "/assets/images/";
const keyword = ref("");
import { Swiper, SwiperSlide } from "swiper/vue";
const options = {
  slidesPerView: 4,
  grid: {
    rows: 1,
  },
};
function useComm(item) {
  base.aiboxShow = false;

  api.clickcommand({ id: item.id }).then((res) => {
    console.log(res);
  });
  if (keyword.value != "") {
    item.title = item.title.replace(
      "<span style='color:#2379f7'>" + keyword.value + "</span>",
      keyword.value
    );
    item.command = item.command.replace(
      "<span style='color:#2379f7'>" + keyword.value + "</span>",
      keyword.value
    );
  }
  base.isCommand = true;
  base.curCommand = item;
  base.curCommand.iconpath = dataicon.value;
  base.selectedPlug = [];
  console.log(base.curCommand);
}

function changeData() {
  if (keyword.value == "") {
    return;
  }
  api.searchcommandindex({ keyword: keyword.value }).then((res) => {
    res.data.forEach((element) => {
      element.title = element.title.replace(
        keyword.value,
        "<span style='color:#2379f7'>" + keyword.value + "</span>"
      );
      element.command = element.command.replace(
        keyword.value,
        "<span style='color:#2379f7'>" + keyword.value + "</span>"
      );
    });
    serachlist.value = res.data;
  });
}
const currtype = ref(0);
import { Autoplay, Pagination, Navigation, Scrollbar, Grid } from "swiper";
const modules = [Autoplay, Pagination, Navigation, Scrollbar, Grid];
const currIndex = ref<number>(0);
const navigation = {
  nextElRef: ".swiper-button-next",
  prevElRef: ".swiper-button-prev",
};
const navigation1 = {
  nextElRef: ".swiper-button-next",
  prevElRef: ".swiper-button-prev",
};
const navigation2 = {
  nextElRef: ".swiper-button-next",
  prevElRef: ".swiper-button-prev",
};
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/pagination";
import "swiper/css/autoplay";
const api = inject("$base", null as any);

import "swiper/css/grid";
function openPlug(id: number) {
  base.selectChildItem = id;
  base.aiboxShow = false;
  base.isPlug = true;
  base.isPlugClick = true;
  setTimeout(() => {
    base.isPlugClick = false;
  }, 1500);
  // base.isPlug = !base.isPlug;
  console.log(base.isPlug);
  console.log(base.selectChildItem);
}
const typelist = ref([
  {
    id: 0,
    name: "精选",
  },
  {
    id: 2,
    name: "场景",
  },
  {
    id: 3,
    name: "职业",
  },
]);
let classindex = ref(-1);
let liwidth = ref(0);

let list = ref([
  {
    id: 1,
    icon: "list_icon.png",
    title: "智能询价",
    command:
      "产品原材料及报价实时更新， 省去人工查询环节， 快速输出报价单，让生意畅通无阻。",

    data: {
      id: 1,
      title: "智能询价",
      isOpen: false,
      img: "pl01.png",
      imgS: "pl_01.png",
    },
  },
  {
    id: 2,
    icon: "list_icon.png",
    title: "计算器",
    command: "丝网数据详情烦杂计算难，重量提前知，输入相关参数快速计算。",
    data: {
      id: 2,
      title: "丝网计算器",
      isOpen: false,
      img: "pl02.png",
      imgS: "pl_02.png",
    },
  },
  {
    id: 3,
    icon: "list_icon.png",
    title: "图纸上传",
    command: "帮助企业快速解读和提取图纸内容",
    data: {
      id: 3,
      title: "图纸上传",
      isOpen: false,
      img: "pl03.png",
      imgS: "pl_03.png",
    },
  },
]);
function closeBoxshow() {
  base.aiboxShow = false;
}
let childClassIndex = ref(0);
let hotcommand = ref([]);
let newcommand = ref([]);
let aicommand = ref([]);
function bestcommandindex() {
  api.getbestcommandindex({}).then((res) => {
    hotcommand.value = res.data.hotcommand;
    newcommand.value = res.data.newcommand;
    aicommand.value = res.data.aicommand;
    console.log(res);
  });
}

function getclass() {
  api.commandclassindex({}).then((res) => {
    typelist.value = res.data;
  });
}
let slidesPerView1 = ref(1);

// list.value = splitArray(list.value, 2);
onMounted(() => {
  getclass();
  if (currtype.value == 0) {
    bestcommandindex();
  }
  if (base.isMobile) {
    slidesPerView1.value = 1;
  } else {
    slidesPerView1.value = 4;
  }
});

liwidth.value = (classindex.value + 1) * 80 + 36;
function delSearch() {
  keyword.value = "";
}
const datalist = ref([]);
const dataicon = ref("");
function changeType(index: number) {
  classindex.value = index;

  if (index == 999) {
    liwidth.value = 3 * 80 + 66;
  } else {
    liwidth.value = (classindex.value + 1) * 80 + 36;
    api
      .classcommandindex({
        classid: typelist.value[classindex.value].children[0].id,
      })
      .then((res) => {
        datalist.value = res.data.list;
        dataicon.value = res.data.iconpath;
      });
  }

  console.log(datalist.value);
}
function getShow(id, index) {
  childClassIndex.value = index;
  api.classcommandindex({ classid: id }).then((res) => {
    datalist.value = res.data.list;
    dataicon.value = res.data.iconpath;
  });
}

let ulWidth = ref(0);
ulWidth.value = Math.ceil((list.value.length * 350) / 2);
console.log(list.value.length);

function splitArray(array, subGroupLength) {
  let index = 0;
  let newArray = [];
  while (index < array.length) {
    newArray.push(array.slice(index, (index += subGroupLength)));
  }
  return newArray;
}
console.log(ulWidth.value);
</script>

<style lang="scss" scoped>
::v-deep .swiper-button-prev.swiper-button-disabled,
::v-deep .swiper-button-next.swiper-button-disabled {
  opacity: 0;
}
::v-deep .swiper-button-next,
::v-deep .swiper-button-prev {
  width: 48px;
  height: 48px;
  overflow: hidden;
  cursor: pointer;
  margin-top: -37px;
}
::v-deep .swiper-button-prev {
  left: -3px;
}
::v-deep .swiper-button-next {
  right: -3px;
}
::v-deep .swiper-button-prev {
  z-index: 999;
  background: url("../../assets/images/hot_left.png") no-repeat center;
}
::v-deep .swiper-button-next {
  z-index: 999;
  background: url("../../assets/images/hot_right.png") no-repeat center;
}
::v-deep .swiper-button-next::after {
  content: "";
}
::v-deep .swiper-button-prev::after {
  content: "";
}
.list_title {
  span {
    color: #2379f7;
  }
}
.search_no {
  text-align: center;
  padding-top: 30px;
  P {
    font-weight: bold;
    margin-top: 20px;
    font-size: 18px;
  }
}
.hotcomtitle {
  display: flex;
  align-items: flex-end;
  line-height: 18px;
  font-size: 18px;
  color: #010101;
  margin-bottom: 20px;
  padding: 0 40px;
  img {
    margin-right: 5px;
  }
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  height: 75px;

  display: flex;
  justify-content: center;
  align-items: center;
}
// .swiper-slide:nth-child(1){
//   margin-left: 40px;
// }
// .swiper-slide:nth-child(2){
//   margin-left: 40px;
// }
// .swiper-slide:last-child(2){
//   margin-right: 40px;
// }
.swiper-grid-column > .swiper-wrapper {
  flex-wrap: wrap;
  flex-direction: column;
}
.hotcomC {
  overflow-x: scroll;
  width: 100%;
  height: 198px;
  padding: 0 40px;
  .swiper {
    height: 100%;
    .swiper-slide {
      .listitem {
        width: 100%;
        height: 75px;
        background-color: #ffffff;
        border-radius: 15px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        .libg {
          width: 33px;
          height: 25px;
          position: absolute;
          top: -2px;
          right: 4px;
          display: flex;
          justify-content: center;
          background: url(../../assets/images/li_con_04.png) no-repeat;
          span {
            display: block;
            color: #fff;
            font-size: 13px;
            font-family: "DIN";
            font-weight: bold;
            text-align: center;
          }
        }
        .list_t {
          padding: 16px 18px 0 18px;
          display: flex;
          align-items: center;
          font-size: 16px;
          .list_icon {
            margin-right: 6px;
            height: 20px;
            overflow: hidden;
            img {
              width: 20px;
              display: block;
            }
          }
        }
        .list_b {
          display: flex;
          align-items: center;
          padding: 0 18px 16px;
          font-size: 14px;
          color: #5f7298;
          justify-content: space-between;
          position: relative;
          .list_desc {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 10px;
          }
          .list_bt {
            width: 80px;
            height: 26px;
            background: rgba($color: #fff, $alpha: 0.5);
            position: absolute;
            right: -80px;
            transition: all 0.5s;
            bottom: 21px;
            line-height: 26px;
            .list_btn_con {
              width: 53px;
              height: 26px;
              background-color: #2379f7;
              border-radius: 13px;
              float: right;
              margin-right: 13px;
              color: #fff;
              text-align: center;
              line-height: 27px;
            }
          }
        }
        .swiper-slide:first-child {
          .listitem {
            .libg {
              background: url(../../assets/images/li_con_01.png) no-repeat
                center center;
              align-items: center;
              width: 37px;
              height: 39px;
            }
          }
        }
      }
      .listitem:hover {
        box-shadow: 2px 5px 18px 1px rgba(41, 100, 251, 0.1);
        .list_bt {
          right: 0;
        }
      }
    }
    .swiper-slide:first-child {
      .listitem {
        .libg {
          background: url(../../assets/images/li_con_01.png) no-repeat center;
          width: 37px;
          align-items: center;
          height: 39px;
          span {
            color: #fb1c00;
          }
        }
      }
    }
    .swiper-slide:nth-child(2) {
      .listitem {
        .libg {
          background: url(../../assets/images/li_con_02.png) no-repeat center;
          width: 37px;
          align-items: center;
          height: 39px;
          span {
            color: #fba321;
          }
        }
      }
    }
    .swiper-slide:nth-child(3) {
      .listitem {
        .libg {
          background: url(../../assets/images/li_con_03.png) no-repeat center;
          width: 37px;
          align-items: center;
          height: 39px;
          span {
            color: #1f6cfd;
          }
        }
      }
    }
  }
  ul {
    display: block !important;
    width: 3000px;
  }
}
.boxSearch {
  display: flex;
  align-items: center;
  width: 100%;
  height: 31px;
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 0 40px;
  img {
    width: 29px;
    height: 31px;
    margin-right: 5px;
  }
  p {
    font-family: SourceHanSansSC-Medium;
    font-size: 18px;
    span {
      color: #2379f7;
    }
  }
}
.threeClasssearch {
  padding: 0 40px;
}
.threeClass {
  ul {
    display: flex;
    flex-wrap: wrap;
    li {
      width: 300px;
      height: 75px;
      background-color: #ffffff;
      border-radius: 15px;
      overflow: hidden;
      margin-right: 16px;
      margin-bottom: 16px;
      cursor: pointer;
      .list_t {
        padding: 16px 18px 0 18px;
        display: flex;
        align-items: center;
        font-size: 16px;
        .list_icon {
          margin-right: 6px;
          height: 20px;
          overflow: hidden;
          img {
            width: 20px;
            display: block;
          }
        }
      }
      .list_b {
        display: flex;
        align-items: center;
        padding: 0 18px 16px;
        font-size: 14px;
        color: #5f7298;
        position: relative;
        justify-content: space-between;
        .list_desc {
          display: -webkit-box;
          -webkit-line-clamp: 1;
          -webkit-box-orient: vertical;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        .list_bt {
          width: 80px;
          height: 26px;
          background: rgba($color: #fff, $alpha: 0.5);
          position: absolute;
          right: -80px;
          transition: all 0.5s;
          .list_btn_con {
            width: 53px;
            height: 26px;
            background-color: #2379f7;
            border-radius: 13px;
            float: right;
            margin-right: 13px;
            color: #fff;
            text-align: center;
            line-height: 26px;
          }
        }
      }
    }

    li:hover {
      box-shadow: 2px 5px 18px 1px rgba(41, 100, 251, 0.1);
      .list_bt {
        right: 0;
      }
    }
  }
}
.aibox_title_bot{
  width: 100%;
  height: calc(100% - 150px);
  overflow: hidden;
}
.boxmain {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  margin-top: 20px;
  scrollbar-color: transparent transparent;
  　　scrollbar-track-color: transparent;
  　　-ms-scrollbar-track-color: transparent;
  scrollbar-width: none;
  .childClass {
    padding: 0 40px;
    ul {
      display: flex;
      flex-wrap: wrap;
      li {
        height: 40px;
        width: 106px;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        text-align: center;
        line-height: 40px;
        margin-right: 15px;
        margin-bottom: 15px;
        cursor: pointer;
      }
      li:hover {
        background: #e1eafc;
        color: #2379f7;
      }
      .cur {
        background: #2379f7;
        color: #ffffff;
      }
    }
  }
}
.boxmain::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.boxmain::-ms-o-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.aibox {
  width: 80%;
  height: 80%;
  background: #f2f7fd;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  .aibox_title_top{
    width: 100%;
  height:150px;
    background: url(../../assets/images/aibox_topbg.png) no-repeat center bottom;
    background-size: cover;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
  }
  .boxtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin-top: 40px;
    width:100%;
    .titright {
      width: 510px;
      height: 45px;
      background: rgba($color: #091649, $alpha: 0.3);
      border-radius: 10px;
      overflow: hidden;
      display: flex;
      align-items: center;
      color: #fff;
      img {
        margin-left: 20px;
        margin-right: 10px;
      }
      input {
        height: 45px;
        width: 430px;
        outline: none;
        color: #fff;
        background: none;
      }
      input::placeholder {
        color: #fff;
      }
      .delks {
        width: 50px;
        height: 50px;
        background: url(../../assets/images/clo_01.png) no-repeat center;
      }
      .delks:hover {
        background: url(../../assets/images/clo_02.png) no-repeat center;
      }
    }
  }
  .boxClass {
    width: 100%;
    height: auto;
    position: relative;
    padding: 0 40px;
    ul {
      display: flex;
      li {
        color: #fff;
        font-size: 18px;
        margin-right: 45px;
        cursor: pointer;
        line-height: 45px;
      }
      .cur {
        color: #fff;
        font-weight: bold;
      }
    }
    span {
      width: 43px;
      height: 3px;
      display: block;
      background-color: #95e3df;
      position: absolute;
      border-radius: 5px;
      left: -5px;
      transition: all 0.5s;
      bottom: 0;
    }
  }
}
.close_box {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    overflow: hidden;
}
@media screen and (max-width: 1386px) {
  .aibox {
    width: 90%;
    border-radius: 15px;
  }
  .threeClass ul li:nth-child(4n) {
    margin-right: 20px;
  }
  .aibox .boxtitle {
    flex-wrap: wrap;
  }
  .aibox .boxtitle .titright {
    margin-top: 10px;
  }

  .titlet img {
    height: 25px;
  }
  .boxmain .childClass ul li {
    width: 96px;
    margin-right: 7px;
  }
  .hotcomtitle {
    padding: 0 20px;
  }
}
@media screen and (max-width: 1000px) {
  .hotcomC {
    height: 178px;
  }
  .aibox .boxClass {
    margin-top: 15px;
  }
}
@media screen and (max-width: 768px) {
  .aititle {
    width: 90%;
    left: 0;
  }
  .hotcomC {
    height: 178px;
    padding: 0 20px;
  }
  .aibox .boxClass {
    margin-top: 15px;
  }
}
</style>